Calculate surface volume and area of a sphereΒΆ
Calculate surface volume and area of a sphere.
Note:
A sphere is a perfectly round geometrical object in three-dimensional
space that is the surface of a completely round ball.
Test Data:
Radius of sphere: .75
Expected output:
Surface Area is: 7.071428571428571
Volume is: 1.7678571428571428
pi = 22/7
radian = float(input('Radius of sphere: '))
surf_area = 4 * pi * radian**2
volume = (4/3) * (pi * radian**3)
print("Surface Area is: ", surf_area)
print("Volume is: ", volume)
Output:
Radius of sphere: .75
Surface Area is: 7.071428571428571
Volume is: 1.7678571428571428